import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../views/HomePage.vue';
import RestaurantPage from '../views/RestaurantDetailPage.vue';
import UserInfoPage from '../views/UserInfoPage.vue';

const routes = [
    {
        path: '/',
        name: 'Home',
        component: HomePage
    },
    {
        path: '/restaurant',
        name: 'Restaurant',
        component: RestaurantPage
    },
    {
        path: '/user-info',
        name: 'UserInfo',
        component: UserInfoPage
    }
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
});

export default router;
